package com.study_programming_in_java;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class StringMathTest {
	private final StringMath sm = new StringMath();

	@Test
	public void testAdd() {
		
		assertEquals("5", sm.add("2", "3"));
		assertEquals("-5", sm.add("10", "-15"));
	}
	
	@Test
	public void testCountUnique() {
		assertEquals(5, sm.countUnique(new String[] {"e", "a", "b", "a", "c", "c", "a", "a", "a", "C"}));
	}
	

}
